package com.zhiwei.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhiwei.pojo.Order;
import com.zhiwei.vo.OrderList;
import com.zhiwei.vo.PageResult;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper //底层会产生一个实现类
public interface OrderMapper extends BaseMapper<Order>{
    /**
     * 获取订单需要的全部属性
     * @return
     */
    List<OrderList> selectOrderList(PageResult pageResult);

    int deleteOrder(Integer id);

    List<OrderList> getRemoveList();
//修改入库订单状态表示入库
    int outBoundOrder(Integer id);
//修改出库库订单状态表示入库
    int outBoundOrderIn(Integer id);

    List<OrderList> getOrderOutList(PageResult pageResult);
}
